<template>
  <ol>
    <li v-for="item in modelValue" :key="item">姓名：{{item.name}}，电话：{{item.mobile}}，专业：{{item.major}} 
      <button @click="handleClick(item)">点击我</button></li>
  </ol>
</template>

<script>
export default {
    props: {
        modelValue: {
            type: Array,
            required: true,
            default: () => [],
        }
    },
    methods: {
      handleClick(item) {
        // 触发自定义事件
        this.$emit("sendData",item);
      }
    }
}
</script>

<style>

</style>